package com.totoro.project.analysis;

import java.io.IOException ;
import java.io.InputStream ;
import java.util.HashMap ;
import java.util.Map ;
import java.util.Properties ;

public class AnalysisPropertiesImpl implements IAnalysis{
    Map<String, String> propertiesMap ; 
    
    @Override
    public Map<String, String> getEnvironmentKV(InputStream is) {
        Properties properties = new Properties() ;
        try {
            properties.load(is) ;
            propertiesMap = new HashMap<String, String>((Map) properties) ;
        } catch (IOException e) {
            e.printStackTrace() ;
        }
        return this.propertiesMap ;
    }
    
    
    
}
